package com.kla.power.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.kla.power.vo.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * <p>
 * 省市县区
 * </p>
 *
 * @author WuZH
 * @since 2023-06-23
 */
@Data
@TableName ( "area_info" )
@ApiModel ( value = "AreaEntity对象", description = "省市县区" )
public class AreaEntity extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty ( "省市县区ID" )
    @TableId ( value = "id", type = IdType.INPUT )
    private String id;

    @ApiModelProperty ( "省市区县名称" )
    @TableField ( "areaName" )
    private String areaName;

    @ApiModelProperty ( "省市区县拼音" )
    @TableField ( "areaPinyin" )
    private String areaPinyin;

    @ApiModelProperty ( "行政区域代码" )
    @TableField ( "areaCode" )
    private String areaCode;

    @ApiModelProperty ( "父ID" )
    @TableField ( "parentId" )
    private String parentId;

    @TableField ( "createTime" )
    private Date createTime;

    @TableField ( "changeTime" )
    private Date changeTime;

    @TableField ( "isUsed" )
    private Integer isUsed;


}
